package com.backend.service;

import com.backend.entity.User;

import java.util.List;

public interface UserService {
    User findByUsername(String username);

    void register(String username, String password);

    User findById(Integer userId);

    void updateByUsername(String usernameBefore,String usernameAfter);

    int usernameExist(String username);

    void updatePwd(Integer id, String newPassword);

    List<User> listAll(Integer pageNumber, Integer pageSize);

    long listAllNum();

    void deleteUser(Integer deleteId);
}
